package com.njust.enums;

/**
 * @author zjwpro@foxmail.com
 * @date 2018/3/14 下午12:55
 */
public enum FaultType {
    //按需求将异常报警修改为四角差报警，
    // 将异常预警修改为异常报警
    YCALARM(1,"四角差报警"),
    //YCALARM(1,"异常报警"),
    GAPALARM(2,"气隙报警"),
    SLOTDALARM(3,"槽深报警"),
    SLOTHALARM(4,"槽楔报警"),
    TEMPALARM(5,"温度报警"),
    //YCWARN(6,"异常预警"),
    YCWARN(6,"四角差预警"),
    GAPWARN(7,"气隙预警"),
    SLOTDWARN(8,"槽深预警"),
    SLOTHWARN(9,"槽楔预警"),
    TEMPWARN(10,"温度预警"),
    /**
     * 添加新的预警报警信息
     */
    PILOTWARM(11,"排障器高度预警"),
    PILOTALARM(12,"排障器高度报警");


    private final int code;

    private final String msg;

    FaultType(int code, String msg){
        this.code=code;
        this.msg = msg;
    }

    public int getCode(){
        return code;
    }
    public String getMsg(){
        return msg;
    }
}
